package com.briup.jd2511.jd2511_product_source.dao;

import com.briup.jd2511.jd2511_product_source.pojo.ManagerFenceHouse;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ManagerFenceHouseMapper {
    //查询所有栏舍
    List<ManagerFenceHouse> queryAllHouses(String fhName);

    //根据栏舍名称查询指定栏舍对象
    ManagerFenceHouse selectByFhName(String fhName);

    //新增栏舍对象
    void insertFenceHouse(ManagerFenceHouse house);

    //根据栏舍编号查询指定栏舍对象
    ManagerFenceHouse selectByFhId(String fhId);

    //更新栏舍对象
    void updateFenceHouse(ManagerFenceHouse house);

    //根据栏舍编号删除指定栏舍对象
    void deleteById(String fhId);

    //批量删除
    void deleteByIdAll(List<String> fhIds);

    List<Object> countAllResources();
}